<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
defined('_JEXEC') or die('Restricted access');

?>
<form action="index.php" method="post" name="adminForm" id="adminForm" >
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table class="adminform">
					
					<tr>
						<td>
							<label for="season">
								<?php echo JText::_( 'SEASON' ).':'; ?>
							</label>
						</td>
						<td>
						<?php
						echo $this->Lists['season']
						?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="hteam">
								<?php echo JText::_( 'HOST TEAM' ).':'; ?>
							</label>
						</td>
						<td>
						<?php
						echo $this->Lists['hteam']
						?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="vteam">
								<?php echo JText::_( 'VISITORS TEAM' ).':'; ?>
							</label>
						</td>
						<td>
						<?php
						echo $this->Lists['vteam']
						?>
						</td>
					</tr>


					<tr>
					<td><?php echo JText::_( 'MATCH DATE' ); ?></td>
					<td>
						<?php echo JHTML::_('calendar', $this->row->matchdate, "matchdate", "matchdate"); ?>
           			</td>
					</tr>

					<tr>
					<td><?php echo JText::_( 'MATCH TIME OR NOTES' ); ?></td>
					<td>
						<input name="matchtime" value="<?php echo $this->row->matchtime; ?>" size="16" maxlength="16" />
           			</td>
					</tr>

					<tr>
						<td><?php echo JText::_( 'ROUND' ); ?></td>
						<td>
						<input name="round" value="<?php echo $this->row->round; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'RESULTS QUANTITY' ); ?></td>
						<td>
						<input name="results_quantity" value="<?php echo $this->row->results_quantity; ?>" size="4" maxlength="10" />
						</td>
					</tr>
				<?php if ($this->row->competition_type == 'ELIMINATION') { ?>
					<tr>
						<td><?php echo JText::_( 'PARENT ID' ); ?></td>
						<td>
							<input name="parent_id" value="<?php echo $this->row->parent_id; ?>" size="4" maxlength="10" />
						</td>
					</tr>
						<?php } ?>
					
					</table>
					<table width="50%" class="adminform">
					<tr>
						<td><?php echo JText::_( 'SCORE' ); ?></td>
						<td>
						<input name="hscore" value="<?php echo $this->row->hscore; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore" value="<?php echo $this->row->vscore; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'SCORE 1' ); ?></td>
						<td>
						<input name="hscore1" value="<?php echo $this->row->hscore1; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore1" value="<?php echo $this->row->vscore1; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'SCORE 2' ); ?></td>
						<td>
						<input name="hscore2" value="<?php echo $this->row->hscore2; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore2" value="<?php echo $this->row->vscore2; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'SCORE 3' ); ?></td>
						<td>
						<input name="hscore3" value="<?php echo $this->row->hscore3; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore3" value="<?php echo $this->row->vscore3; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'SCORE 4' ); ?></td>
						<td>
						<input name="hscore4" value="<?php echo $this->row->hscore4; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore4" value="<?php echo $this->row->vscore4; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'SCORE 5' ); ?></td>
						<td>
						<input name="hscore5" value="<?php echo $this->row->hscore5; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore5" value="<?php echo $this->row->vscore5; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					<tr>
						<td><?php echo JText::_( 'SCORE 6' ); ?></td>
						<td>
						<input name="hscore6" value="<?php echo $this->row->hscore6; ?>" size="4" maxlength="10" />
						</td>
						<td>
						<input name="vscore6" value="<?php echo $this->row->vscore6; ?>" size="4" maxlength="10" />
						</td>
					</tr>
					</table>
					<table class="adminform">
					<tr>
						<td>
							<label for="published">
								<?php echo JText::_( 'PUBLISHED' ).':'; ?>
							</label>
						</td>
						<td>
							<?php
							$html = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $this->row->published );
							echo $html;
							?>
						</td>
					</tr></table>
					<table><tr><td><?php JText::_('MATCH INFO')?></td></tr>
					<tr><td>
						<?php
						// parameters : areaname, content, hidden field, width, height, rows, cols 
						echo $this->editor->display( 'description',  $this->row->description, '100%;', '550', '75', '20', array('pagebreak', 'readmore') ) ;
						?>
					</td></tr>
					</table>

	
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="option" value="com_lr" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="controller" value="fixtures" />
<input type="hidden" name="view" value="fixture" />
<input type="hidden" name="task" value="" />
</table>
</form>
<?php
//print_r ($this);
?>
<p class="copyright">
		<?php echo lrAdmin::footer( ); ?>
</p>
	